<?php
$conn = array(
    // Rabbitmq 服务地址
    'host' => '127.0.0.1',
    // Rabbitmq 服务端口
    'port' => '5672',
    // Rabbitmq 帐号
    'login' => 'guest',
    // Rabbitmq 密码
    'password' => 'guest',
    'vhost'=>'/'

);


include './RabbitMQCommand.php';
$rabbitMqCom=new RabbitMQCommand($conn,'ex1','queue1','key_1');
$rabbitMqCom->run('1231');